package org.wxl.liangpicturebackend.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.wxl.liangpicturebackend.common.BaseResponse;
import org.wxl.liangpicturebackend.common.ResultUtils;
//健康检查，运行一个非常简单的接口，若成功运行，则整体没有啥大毛病
@RestController
@RequestMapping("/")
public class MainController {
    @GetMapping("/health")
    public BaseResponse<String> health() {
        return ResultUtils.success("ok");
    }
}
